/*
 * System.h
 *
 *  Created on: 30.11.2011
 *      Author: Christian St�veken christian.Stoeveken@googlemail.com
 *      Author: Jonas Wilhelm wilheljo@googlemail.com
 *      Author: Jannik Müller jannik-mpunkt@web.de
 */

#ifndef SYSTEM_H_
#define SYSTEM_H_

#define totalStepsX 100
#define totalStepsY 50

//Enum for determining the value to load from / save to disk
enum PARAM {
    TIME_INTERVAL,
    DOSE,
    SLOT_ACTIVE
};

//Struct simulating the "storage" we are currently loading from.
//The (only) instance "storageDummy[7]" is filled by the bootstrap() function at startup
struct slotValuesInStorage {
    int interval,
        dose,
        slotActive;
};

//To get some start values to work with
void bootstrap();

//store values to flash drive
void storeValue(int slotNumber, enum PARAM valueType, int iValue);

//load values from flash drive
int loadValue (int slotNumber, enum PARAM valueType);

/* this is the initialization process */
void initializeMotorPositions(void);

#endif /* SYSTEM_H_ */
